<template>
  <div class="learingIndexDetail">
    <div class="top"><span class="icon-back">  </span> 数据分析 
      <div class="banner">
        <img src="../assets/banner.png" alt="">
        <span>名称</span>
      </div>
    </div>
    <div class="contentInfo">
        <!--课程描述相关信息-->
        <div class="desInfo">
          <div class="des">
            Lorem ipsum dolor sit amet.
          </div>
          <ul>
            <li>难度：<i>高级</i> </li>
            <li>时长：10</li>
            <li>人数：12</li>
            <li>评分：<em>12</em></li>
          </ul>
        </div>
        <!--讲师介绍相关信息-->
        <div class="teachInfo">
          <div class="teach"><img src="holder.js/50x50" alt=""></div>
          <div class="info">
            <p class="name">Andy</p>
            <p>讲师</p>
          </div>
          <div class="goAbout"> <i class="icon-go"></i></div>
        </div>
        <!--适合人群-->
        <div class="fitPeop">
          <div class="tit">适合人群</div>
          <div>大学生</div>
        </div>
        <!--课程大纲-->
        <div class="courseItem">
          <div class="tit">课程大纲</div>
          <ul>第一章
            <li><span>视频</span>第一节：控制器的作用 <a href="">试学</a></li>
            <li><span>视频</span>第二节：控制器的作用 <a href="">试学</a></li>
            <li><span>视频</span>第三节：控制器的作用 <a href="">试学</a></li>
            <li><span>视频</span>第四节：控制器的作用 <a href="">试学</a></li>
          </ul>
        </div>
    </div>
    <div class="payCourse">￥ 299.00<a href="">立即购买</a></div>
    <div class="startLearing"><a href="#/pay/12">开始学习</a></div>
  </div>
</template>
<script>
  export default {
    name: 'learingIndexDetail',
    data () {
      return {
        courseInfoData: '',           // 课程信息
        teachInfo: '',                // 讲师信息
        courseItem: ''                // 课程大纲
      }
    },
  }
</script>

<style lang="scss">
  @import "../assets/baseScss";
.learingIndexDetail{
  text-align: center;
  .banner{
    position: relative;
    z-index: 99;
    color:$cl1;
    font-size: 24px;
    span{
      font-weight: bold;
      position: absolute;
      top:50%;
      left:50%;
      transform:translate(-50%, -50%);
    }
  }
  .top{
    background: $cl1;
    position: relative;
    line-height: 40px;
    color:$cl7;
    font-size: 14px;
    span:before{font-size: 15px;}
    span:nth-child(1){
      position: absolute;
      top:10px;
      left:10px;
    }
    span:nth-child(2){
      position: absolute;
      top:10px;
      right:15px;
    }
  }
  .contentInfo{
    padding:10px;
    margin-bottom: 60px;
    .desInfo{
      background: $cl1;
      font-size: 12px;
      .des{
        color: $cl6;
        line-height: 28px;
        text-align: left;
        padding:10px;
        border-bottom: solid 1px $cl5;
      }
      ul{
        color:$cl3;
        width: 100%;
        display: flex;
        padding:5px 0px;
        li{
          flex: 1;
          text-align: center;
          border-right: solid 1px $cl5;
          em{
            color:$cl15;
          }
        }
        li:last-child{
          border:none;
        }
      }
    }
  }
  .teachInfo{
    display: flex;
    padding:10px 0;
    background: $cl1;
    margin: 10px 0;
    .teach{
      flex: 1;
      text-align: center;
      img{
        width: 50px;
        border-right: 50px;
        display: inline-block;
      }
    }
    .info{
      flex: 3;
      text-align: left;
      color:$cl6;
      font-size: 14px;
      p{
        height: 25px;
        line-height: 25px;
        overflow: hidden;
      }
      .name{
        color: $cl3;
        font-size: 16px;
      }
    }
    .goAbout{
      flex: 1;
      color:$cl9;
      i{
        position: relative;
        top:20px;
      }
    }
  }
  .fitPeop{
    padding:10px;
    background: $cl1;
    margin: 10px 0;
    font-size: 12px;
    line-height: 28px;
    color:$cl6;
    text-align: left;
    .tit{
      font-size: 14px;
      color: $cl3;
    }
  }
  .courseItem{
    padding:10px;
    background: $cl1;
    margin: 10px 0;
    font-size: 12px;
    line-height: 28px;
    color:$cl6;
    text-align: left;
    .tit{
      font-size: 14px;
      color: $cl3;
    }
    ul{
      color:$cl3;
      padding-left: 10px;
      li{
        color:$cl6;
        font-size: 12px;
        padding-left: 20px;
       span{
         font-size: 10px;
         padding:2px 4px 0px 4px;
         margin-right: 3px;
         border:solid 1px $cl9
       }
        a{
          position: absolute;
          right: 20px;
          color:$cl0;
        }
      }
    }
    ul:before{
      content: ' ● ';
      font-size: 20px;
      color:$cl5;
      position: relative;
      top:2px;
    }
    li:before{
      content: ' ';
      display: inline-block;
      position: absolute;
      left: 35px;
      color:$cl7;
      width: 18px;
      height: 30px;
      border-left: solid 1px $cl5;
    }
  }
  .payCourse{
    position: fixed;
    bottom:0px;
    left:0px;
    width: 100%;
    text-align: left;
    background: $cl1;
    padding-left: 30px;
    font-size: 18px;
    line-height: 50px;
    color:$cl13;
    a{
      position: absolute;
      right: 0px;
      width: 50%;
      background: $cl0;
      color:$cl1;
      text-align: center;
    }
  }
  .startLearing{
    font-size: 18px;
    background: $cl0;
    color:$cl1;
    text-align: center;
    line-height: 50px;
    position: fixed;
    bottom:0px;
    left:0px;
    width: 100%;
    a{
      color:$cl1;
      display: inline-block;
      width: 100%;
      height: 50px;
    }
  }
}
</style>
